package com.tianma.upload.uploadjartest.factory.abstracts;

/**
 * @author lgc
 * @createDate 2020/8/12 - 15:46
 */
public class Test {
    public static void main(String[] args){
        HuaweiFactory huaweiFactory = new HuaweiFactory();
        IPhoneProduct phoneProduct = huaweiFactory.getPhoneProduct();
        System.out.println("phoneProduct = " + phoneProduct.initOpen());
        System.out.println("phoneProduct = " + phoneProduct.close());
        IRouterProduct routerProduct = huaweiFactory.getRouterProduct();
        System.out.println("routerProduct = " + routerProduct.opendWifi());
    }
}
